define({ "api": [
  {
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "optional": false,
            "field": "varname1",
            "description": "<p>No type.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "varname2",
            "description": "<p>With type.</p>"
          }
        ]
      }
    },
    "type": "",
    "url": "",
    "version": "0.0.0",
    "filename": "./doc/main.js",
    "group": "D__phpStudy2018_PHPTutorial_WWW_computercultrue_doc_main_js",
    "groupTitle": "D__phpStudy2018_PHPTutorial_WWW_computercultrue_doc_main_js",
    "name": ""
  },
  {
    "type": "get",
    "url": "/exam",
    "title": "学生可报名的场次",
    "description": "<p>获取学生的可报名的场次</p>",
    "group": "student",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/student/controller/Exam.php",
    "groupTitle": "student",
    "name": "GetExam"
  },
  {
    "type": "get",
    "url": "/exam/:id",
    "title": "获取学生的考试信息",
    "description": "<p>学生账号登录</p>",
    "group": "student",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": ":id",
            "description": "<p>学号</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>获取学生的考试信息</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"获取学生的考试信息\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/student/controller/Exam.php",
    "groupTitle": "student",
    "name": "GetExamId"
  },
  {
    "type": "get",
    "url": "/login/valid_token",
    "title": "验证token有效性",
    "description": "<p>验证token有效性</p>",
    "group": "student",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"token\": token，\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>验证token有效性,返回token中信息</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"token中信息\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/student/controller/Login.php",
    "groupTitle": "student",
    "name": "GetLoginValid_token"
  },
  {
    "type": "post",
    "url": "/login",
    "title": "学生账号登录",
    "description": "<p>学生账号登录</p>",
    "group": "student",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "name",
            "description": "<p>姓名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "number",
            "description": "<p>学号</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"name\": 姓名，\n  \"number\": 学号\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>token令牌，之后的接口在http请求中在header里加上HTTP-X-TOKEN=&gt;TOKEN.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"token\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/student/controller/Login.php",
    "groupTitle": "student",
    "name": "PostLogin"
  },
  {
    "type": "put",
    "url": "/exam/:id",
    "title": "申请计算机文化考试",
    "description": "<p>申请计算机文化考试</p>",
    "group": "student",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": ":id",
            "description": "<p>学号</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "exam",
            "description": "<p>考试号</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"exam\": 考试号，\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>加入考试成功</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"加入考试成功\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/student/controller/Exam.php",
    "groupTitle": "student",
    "name": "PutExamId"
  },
  {
    "type": "delete",
    "url": "/teacher/exam/:id",
    "title": "删除考试场次",
    "description": "<p>删除考试场次</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": "<p>考试批次</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Exam.php",
    "groupTitle": "teacher",
    "name": "DeleteTeacherExamId"
  },
  {
    "type": "get",
    "url": "/teacher/demo/score",
    "title": "下载成绩导入表demo",
    "description": "<p>下载成绩导入表demo</p>",
    "group": "teacher",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "address",
            "description": "<p>http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Demo.php",
    "groupTitle": "teacher",
    "name": "GetTeacherDemoScore"
  },
  {
    "type": "get",
    "url": "/teacher/demo/student",
    "title": "下载新生导入表demo",
    "description": "<p>下载新生导入表demo</p>",
    "group": "teacher",
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "address",
            "description": "<p>http://192.168.57.17:6700/computercultrue/download/excel/新生导入表demo.xlsx</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Demo.php",
    "groupTitle": "teacher",
    "name": "GetTeacherDemoStudent"
  },
  {
    "type": "get",
    "url": "/teacher/exam/",
    "title": "读取考试批次",
    "description": "<p>读取考试批次</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "examid",
            "description": "<p>场次</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "date",
            "description": "<p>日期</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "status",
            "description": "<p>0可报名 1不可报名 2结束</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "place",
            "description": "<p>地点</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "total_mount",
            "description": "<p>总人数</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "page",
            "description": "<p>页数1 默认5条 0表示所有数据</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"examid\": 10,\n  \"date\": \"2018-09-08 13:29:21\"，\n  \"status\" : 0 or 1,\n  \"place\":\"10栋312\",\n  \"total_mount\":100\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Exam.php",
    "groupTitle": "teacher",
    "name": "GetTeacherExam"
  },
  {
    "type": "get",
    "url": "/teacher/exam/create",
    "title": "创建考试批次",
    "description": "<p>创建考试批次</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": "<p>考试批次</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "date",
            "description": "<p>日期</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "place",
            "description": "<p>地点</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "total_mount",
            "description": "<p>总人数</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"date\": \"2018-09-08 13:29:21\"，\n  \"place\":\"10栋312\",\n  \"total_mount\":100\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Exam.php",
    "groupTitle": "teacher",
    "name": "GetTeacherExamCreate"
  },
  {
    "type": "get",
    "url": "/teacher/exam/:id",
    "title": "读取考场下载人员名单",
    "description": "<p>读取考场下载人员名单</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "id",
            "description": "<p>考试批次</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "download",
            "description": "<p>0 读取名单 1 下载名单</p>"
          }
        ]
      }
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Exam.php",
    "groupTitle": "teacher",
    "name": "GetTeacherExamId"
  },
  {
    "type": "get",
    "url": "/teacher/login/valid_token",
    "title": "验证token有效性",
    "description": "<p>验证token有效性</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "token",
            "description": "<p>token</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"token\": token，\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>验证token有效性,返回token中信息</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"token中信息\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Login.php",
    "groupTitle": "teacher",
    "name": "GetTeacherLoginValid_token"
  },
  {
    "type": "get",
    "url": "/teacher/student/cls",
    "title": "查询学生名单",
    "description": "<p>查询学生名单</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "class",
            "description": "<p>班级</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Student.php",
    "groupTitle": "teacher",
    "name": "GetTeacherStudentCls"
  },
  {
    "type": "post",
    "url": "/teacher/login",
    "title": "教师账号登录",
    "description": "<p>教师账号登录</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "username",
            "description": "<p>用户名</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": false,
            "field": "password",
            "description": "<p>密码</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"username\": 用户名，\n  \"password\": 密码\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>token令牌，之后的接口在http请求中在header里加上HTTP-X-TOKEN=&gt;TOKEN.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": \"token\"\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Login.php",
    "groupTitle": "teacher",
    "name": "PostTeacherLogin"
  },
  {
    "type": "post",
    "url": "/teacher/student/",
    "title": "提交学生名单",
    "description": "<p>提交学生名单</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Object",
            "optional": false,
            "field": "file",
            "description": "<p>student.xlsx or student.xls</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回提交失败人员名单.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Student.php",
    "groupTitle": "teacher",
    "name": "PostTeacherStudent"
  },
  {
    "type": "post",
    "url": "/teacher/student/score",
    "title": "提交考场成绩",
    "description": "<p>提交考场成绩</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "object",
            "optional": false,
            "field": "file",
            "description": "<p>score.xls or score.xlsx</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Student.php",
    "groupTitle": "teacher",
    "name": "PostTeacherStudentScore"
  },
  {
    "type": "put",
    "url": "/teacher/exam/:id",
    "title": "更新考试批次",
    "description": "<p>创建考试批次</p>",
    "group": "teacher",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "examid",
            "description": "<p>场次</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "date",
            "description": "<p>日期</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "place",
            "description": "<p>地点</p>"
          },
          {
            "group": "Parameter",
            "type": "string",
            "optional": true,
            "field": "total_mount",
            "description": "<p>总人数</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Request-Example:",
          "content": "{\n  \"examid\": 10,\n  \"date\": \"2018-09-08 13:29:21\"，\n  \"place\":\"10栋312\",\n  \"total_mount\":100\n}",
          "type": "json"
        }
      ]
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "code",
            "description": "<p>0 表示失败 1 表示成功.</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "msg",
            "description": "<p>返回报名场次.</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "{\n  \"code\": \"1\",\n  \"msg\": [{\"返回报名场次\"}]\n}",
          "type": "json"
        }
      ]
    },
    "version": "0.0.0",
    "filename": "./application/teacher/controller/Exam.php",
    "groupTitle": "teacher",
    "name": "PutTeacherExamId"
  }
] });
